// 这里写的都是根getters
const getters = {
  // 通过根getters建立对子模块state的快件访问
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  userId:state => state.user.userInfo.userId,
  username:state => state.user.userInfo.username,
  staffPhoto:state => state.user.userInfo.staffPhoto,
  
}
export default getters
